package com.wy.configs;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import com.wy.properties.ResourceProperties;
import com.wy.properties.UserProperties;

@Configuration
@EnableConfigurationProperties({ UserProperties.class, ResourceProperties.class })
public class YmlConfig {

	public static UserProperties userYml;

	public static ResourceProperties resourceYml;

	@Autowired
	public void setFeatureTable(UserProperties userYml) {
		YmlConfig.userYml = userYml;
	}

	@Autowired
	public void setResouceYml(ResourceProperties resourceYml) {
		YmlConfig.resourceYml = resourceYml;
	}
}